package com.Design.Flyweight;

/**
 * @Author Lc
 * @Date 2023/10/2
 * @PackageName: com.Design.Flyweight
 * @ClassName: WebSite
 * @Description:
 */

public class WebSite extends Web{
    private String name;

    public WebSite(String name) {
        this.name = name;
    }

    @Override
    void use(User user) {
        System.out.println("网站分类:" + this.name + "用户:" + user.getName());
    }
}
